<?php
namespace app\admin\validate;

use think\Validate;

class EditPassValidate extends Validate
{
    protected $rule = [
        'oldpass' => 'require',
        'newpass' => 'require',
        'confpass' => 'require'
    ];

    protected $message = [
        'oldpass.require' => '原密码不能为空',
        'newpass.require' => '新密码不能为空',
        'confpass.require' => '确认密码不能为空'
    ];
}